package com.laolang.shop.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@Accessors(chain = true)
@Data
@TableName("sys_user")
public class SysUser {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;
    private String nickname;
    private String pwd;
    private String salt;
    private Integer type;
    private String phone;
    private String email;
    private String avatar;
    private Long tenantId;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    @Version
    private Integer version;
}
